import 'package:shop/common/shop_material.dart';

class MyText extends Text {
  final String title;
  final String color;
  final double fontSize;
  final bool fontWeight;
  MyText(this.title,
      [this.fontSize = 0, this.color = "", this.fontWeight = false])
      : super(title);
  @override
  TextStyle get style => TextStyle(
        color: color == "" ? null : color.color,
        fontSize: fontSize == 0 ? null : fontSize,
        fontWeight: fontWeight ? FontWeight.bold : null,
      );
}
